<?

$fs_ord_man_customer_entry = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"ord_man_customer_entry",
	title=>"Order Management",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["order_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"order_id",label=>"Order",type=>"any",
				relation=>array(foreign=>"ord_man_orders",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM ord_man_orders",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"freight_charge",label=>"Freight Charge",type=>"decimal",
				input=>"field", optional=>true),
		array (name=>"line_total",label=>"Line Total",type=>"decimal",
				input=>"field"),
		array (name=>"sales_tax_rate",label=>"Sales Tax Rate",type=>"decimal",
				input=>"field", optional=>true),
		array (name=>"date_order",label=>"Order Date",type=>"any",
				input=>"date",value=>_app_date("order_date")),
		array (name=>"date_ship",label=>"Shipped Date",type=>"any",
				input=>"date",value=>_app_date("order_date")),
		array (name=>"shipped",label=>"Shipped",type=>"any",
				input=>"field", optional=>true),
	),
));

$fs_ord_man_customer_entry->parse ();

?>
